From 8cdb38fecfed33e84d380f4a2172375967dad11a Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 15 Nov 2002 06:10:08 +0000 Subject: [PATCH] snprintf is C99, not C90. Whack color and class so data will display on the GPS V. --- gpsbabel/jeeps/gpsapp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpsbabel/jeeps/gpsapp.c b/gpsbabel/jeeps/gpsapp.c index 4a02b4d6e..4937ea1e0 100644 --- a/gpsbabel/jeeps/gpsapp.c +++ b/gpsbabel/jeeps/gpsapp.c @@ -267,7 +267,7 @@ static void GPS_A001(GPS_PPacket packet) tag = *p; data = GPS_Util_Get_Short(p+1); - snprintf(pb, sizeof(pb), "Capability '%c'. Type %d", tag, data); + sprintf(pb, "Capability '%c'. Type %d", tag, data); GPS_User(pb); /* Only one type of P[hysical] so far */ @@ -1876,9 +1876,9 @@ static void GPS_D109_Send(UC *data, GPS_PWay way, int32 *len) p = data; - *p++ = 1; /* D109 constant data (grrrr.) */ - *p++ = way->wpt_class; - *p++ = way->colour; + *p++ = 1 /* way->wpt_class */; /* For D109, the class must be 1 */ + *p++ = 0 /* way->colour*/ ; /* If non-zero, the waypoint is in + invisible ink on the V. */ *p++ = way->dspl; *p++ = 0x70; GPS_Util_Put_Short(p,way->smbl); -- 2.30.2